<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Class ProjectDetail
 */
class BDSProjectDetail extends Module
{
	/**
	 * Template
	 * @var string
	 */
	protected $strTemplate = 'mod_bds_project_detail';


	/**
	 * Display a wildcard in the back end
	 * @return string
	 */
	public function generate()
	{
		return parent::generate();
	}

	/**
	 * Generate module
	 */
	protected function compile()
	{	if (FE_USER_LOGGED_IN)
		{
			$this->project_id = $this->Input->get("id") ? $this->Input->get("id") : $this->Input->post("id");
			$objBds  =$this->Database->execute("SELECT * FROM tl_project_object WHERE published=1 AND pid=".$this->project_id);
			$arrBds = $objBds->fetchAllAssoc();
			$this->Template->arrBds = $arrBds;
		}
	}
}
?>